import request from '@/utils/request'

// 查询订单日志
export function getOrderLog(query) {
  return request({
    url: '/basic/warehouse/orderLog/',
    method: 'get',
    params: query
  })
}

// 查询全部订单日志
export function getAllOrderLog(query) {
  return request({
    url: '/basic/warehouse/orderLog/allListByKeyword',
    method: 'get',
    params: query
  })
}


// 订单日志详情
export function OrderLogDetail(query) {
  return request({
    url: '/basic/warehouse/orderLog/'+query,
    method: 'get'
  })
}


// 删除订单日志
export function delOrderLog(query) {
  return request({
    url: '/basic/warehouse/orderLog/'+query,
    method: 'delete'
  })
}


// 新增订单日志
export function addOrderLog(query) {
  return request({
    url: '/basic/warehouse/orderLog/',
    method: 'post',
    data: query
  })
}

// 修改订单日志
export function updateOrderLog(query) {
  return request({
    url: '/basic/warehouse/orderLog/',
    method: 'put',
    data: query
  })
}


export function getOperate() {
  return request({
    url: '/basic/warehouse/orderLog/operateType',
    method: 'get'
  })
}

